/**
 * login.html page script
 * @author czp
 * date 2018-05-01
 */
$('#logout').on("click", function () {
    $.ajax({
        url : contextPath + '/login/loginOut',
        type : 'POST',
        data : { "state" : "LOGOUT" },
        success : function (data) {
            if (data) window.location.href = contextPath + "/login";
        },
        error : function () {
            //
        }
    });
});
